
package nkr1pt.popkorn.extract;

import java.util.Set;
import nkr1pt.popkorn.download.DownloadCandidate;
import nkr1pt.popkorn.download.DownloadCandidateItem;

/**
 *
 * @author Kristof Vanhaeren
 */
public interface ExtractCommand {

    Set<DownloadCandidateItem> testCRC(DownloadCandidate downloadCandidate) throws Exception;

    boolean extract(DownloadCandidate downloadCandidate) throws Exception;

    /**
     * Must be implemented to provide the name of the extract command.
     *
     * @return the name of the extract command.
     */
    String getName();

}